package com.xjrh.traintravel.collector.netty.command.config;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 通讯协议命令-参数设置-08：环境温度偏差
 *
 * @author snps
 * @create 2022-01-27 15:04
 * @describe
 **/
public class Config08 extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 4737805294755282968L;


    /**
     * 温度校准段
     *      1：110Ω以下
     *      2：110-130Ω
     *      3：130Ω以上
     */
    private int field1;

    /**
     * COM口
     *      485-1: 01
     *      485-2: 02
     */
    private int field2;

    /**
     * 设备类型
     *      1: I型
     *      2: II型
     */
    private int field3;

    /**
     * 偏差
     */
    private int field4;


    /**
     * Constructor
     */
    public Config08() {
        this.setCommonNo("08");
    }


    /**************************************
     * Getter and Setter
     */
    public int getField1() {
        return field1;
    }

    public void setField1(int field1) {
        this.field1 = field1;
    }

    public int getField2() {
        return field2;
    }

    public void setField2(int field2) {
        this.field2 = field2;
    }

    public int getField3() {
        return field3;
    }

    public void setField3(int field3) {
        this.field3 = field3;
    }

    public int getField4() {
        return field4;
    }

    public void setField4(int field4) {
        this.field4 = field4;
    }


    @Override
    public String toString() {
        return "Config08{" +
                "field1=" + field1 +
                ", field2=" + field2 +
                ", field3=" + field3 +
                ", field4=" + field4 +
                '}';
    }

}